Environment

Provides the details about the current operating system, JVM architecture, JRE version etc.

Functions

Link copied to clipboard
open fun checkEnvironment()
Checks the current operating system name and version, JRE version and throws the error if they do not meet the minimal operating system and JRE requirements.
Link copied to clipboard
Returns an absolute path to the directory where the Chromium binaries are located by default.
Link copied to clipboard
open fun is32Bit(): Boolean
Indicates whether the current JVM's architecture is 32-bit.
Link copied to clipboard
open fun is64Bit(): Boolean
Indicates whether the current JVM's architecture is 64-bit.
Link copied to clipboard
open fun isArm(): Boolean
Indicates whether the current JVM's architecture is ARM.
Link copied to clipboard
open fun isLinux(): Boolean
Returns true if the current operating system is Linux.
Link copied to clipboard
open fun isMac(): Boolean
Returns true if the current operating system is macOS.
Link copied to clipboard
open fun isMacBigSur(): Boolean
Returns true if the current operating system is macOS Big Sur.
Link copied to clipboard
open fun isSupported(): Boolean
Returns true if the current environment is supported.
Link copied to clipboard
open fun isWindows(): Boolean
Returns true if the current operating system is Windows.
Link copied to clipboard
open fun isWindows64(): Boolean
Returns true if the current platform is Windows 64-bit.
Link copied to clipboard
open fun traceEnvironment()
Prints the current environment details to the log with the INFO level.
Link copied to clipboard
open fun userHomeDir(): Path
Returns path to the user's home directory.
Link copied to clipboard
open fun userTempDir(): Path
Returns path to the user's temp directory.
Link copied to clipboard
Returns the absolute path to the local "AppData" directory of the current Windows user.